#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/3/8 17:09
# @Author  : jeff
# @FileName: public_controller
from flask import Blueprint

from src.filter.security_aspect import require_token
from src.service.public_service import PublicService
from src.vo.response import response

public = Blueprint('public', __name__, url_prefix='/public')


class PublicCommon(object):
    @staticmethod
    @public.route('/time', methods=['GET'])
    @require_token("admin")
    def get_sys_time():
        """
           Get system time
           :return:
           """

        return response(PublicService.get_sys_time())
